package com.yz.promotion.mapping;

import com.yz.model.vo.promotion.PromotionVo;
import com.yz.common.handler.BaseMapping;
import com.yz.model.entity.promotion.PromotionCode;
import org.mapstruct.Mapper;


/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * <p>
 * User:Mr.Du
 * Date:2024/3/25
 * Time:17:12
 */
@Mapper(componentModel = "spring")
public interface PromotionMapping extends BaseMapping<PromotionCode, PromotionVo> {

//    @Override
//    default void afterConvertTo(PromotionCode src, PromotionVo dest) {
//        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(DateConstants.YYYY_MM_DD_HH_MM_SS);
//        dest.setExpireTime(src.getExpireTime());
//    }
}
